package tcu.iot.gasmanage.service;

import org.springframework.stereotype.Service;
import tcu.iot.gasmanage.common.Result;
import tcu.iot.gasmanage.entity.equipmentcard.EquipmentCardReturn;
import tcu.iot.gasmanage.mapper.EquipmentCardMapper;

import javax.annotation.Resource;

@Service
public class EquipmentCardService {

    @Resource
    private EquipmentCardMapper equipmentCardMapper;

    public Result getEquipmentInfo(String equipmentNumber){
        EquipmentCardReturn equipmentCardReturn = equipmentCardMapper.GetEquipmentInfo(equipmentNumber);
        equipmentCardReturn.setImgUrl(equipmentCardMapper.GetImgUrl(equipmentNumber));
        
        return Result.ok("true",200,"成功",equipmentCardReturn);
    }

}
